package com.etc.reflect;

import com.example.springboot0.aspect.Log;

public class Student {
    private String name;
    private int sno;

    @Log("这是Student类的study方法")
    public void study(String sha) {
        System.out.println(this.name + "在学习" + sha);
    }

    public Student(String name, int sno) {
        this.name = name;
        this.sno = sno;
    }

    public Student() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }
}
